package  
{
	import flash.display.MovieClip;
	/**
	 * 人信息
	 * @author ase7en
	 */
	public class PersonItem extends MovieClip
	{	
		private var _fromFloor:int;
		private var _toFloor:int;
		private var _state:String = "wait";
		private var _seat:int;
		public function get fromFloor():int 
		{
			return _fromFloor;
		}
		
		public function set fromFloor(value:int):void 
		{
			_fromFloor = value;
		}
		
		public function get toFloor():int 
		{
			return _toFloor;
		}
		
		public function set toFloor(value:int):void 
		{
			_toFloor = value;
		}
		
		public function get type():String 
		{
			return (_toFloor - _fromFloor > 0 )?("up"):("down");
		}
		
		public function get state():String 
		{
			return _state;
		}
		
		public function set state(value:String):void 
		{
			_state = value;
		}
		
		public function get seat():int 
		{
			return _seat;
		}
		
		public function set seat(value:int):void 
		{
			_seat = value;
		}
		
	}

}